package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 报警分析对象 alarmAnalyse
 *
 * @author ruoyi
 * @date 2023-07-07
 */

@ApiModel("设备报警分析")
public class AlarmAnalyse extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** id */
    @ApiModelProperty("id")
    private Long id;

    /** 设备名称 */
    @ApiModelProperty("设备名称")
    @Excel(name = "设备名称")
    private String equipName;

    /** sn序号 */
    @ApiModelProperty("sn序号")
    @Excel(name = "sn序号")
    private String snNum;

    /** 行政区域id */
    @ApiModelProperty("行政区域id")
    @Excel(name = "行政区域id")
    private Long regionId;

    /** 行政区域 */
    @ApiModelProperty("行政区域")
    @Excel(name = "行政区域")
    private String region;

    /** 详细地址 */
    @ApiModelProperty("详细地址")
    @Excel(name = "详细地址")
    private String address;

    /** 触发器ID */
    @ApiModelProperty("触发器id")
    @Excel(name = "触发器ID")
    private Long trigerId;

    /** 触发器名称 */
    @ApiModelProperty("触发器名称")
    @Excel(name = "触发器名称")
    private String trigerName;

    /** 报警次数 */
    @ApiModelProperty("报警次数")
    @Excel(name = "报警次数")
    private Long warningNum;
    @ApiModelProperty("开始日期")
    private Date startTime;
    @ApiModelProperty("结束日期")
    private Date endTime;

    public String lat;

    private String lng;
    @ApiModelProperty("创建日期")
    private Date createTime;
    @ApiModelProperty("数据类型")
    private String dataType;
    @ApiModelProperty("报警值")
    private String warningValue;

    public String getWarningValue() {
        return warningValue;
    }

    public void setWarningValue(String warningValue) {
        this.warningValue = warningValue;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getEquipName() {
        return equipName;
    }

    public void setEquipName(String equipName) {
        this.equipName = equipName;
    }

    public String getSnNum() {
        return snNum;
    }

    public void setSnNum(String snNum) {
        this.snNum = snNum;
    }

    public Long getRegionId() {
        return regionId;
    }

    public void setRegionId(Long regionId) {
        this.regionId = regionId;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getTrigerId() {
        return trigerId;
    }

    public void setTrigerId(Long trigerId) {
        this.trigerId = trigerId;
    }

    public String getTrigerName() {
        return trigerName;
    }

    public void setTrigerName(String trigerName) {
        this.trigerName = trigerName;
    }

    public Long getWarningNum() {
        return warningNum;
    }

    public void setWarningNum(Long warningNum) {
        this.warningNum = warningNum;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("equipName", getEquipName())
                .append("snNum", getSnNum())
                .append("regionId", getRegionId())
                .append("region", getRegion())
                .append("address", getAddress())
                .append("trigerId", getTrigerId())
                .append("trigerName", getTrigerName())
                .append("warningNum", getWarningNum())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
//                .append("createTime", getCreateTime())
                .toString();
    }

}
